package com.itheima.exce;

import java.text.SimpleDateFormat;
import java.util.Date;

public class ExceptionDemo1 {
    public static void main(String[] args) {
        Date date = new Date();
        System.out.println(date.toString());
        System.currentTimeMillis();
        SimpleDateFormat sdf = new SimpleDateFormat();
        System.out.println(sdf.format(date));

    }
}
